package com20230216;

public class Dog {
    private String color;
    private String breed;

    public Dog() {
    }

    public Dog(String color, String breed) {
        this.color = color;
        this.breed = breed;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public void eat(){
        System.out.printf("%s的%s正在啃骨头……\n",color,breed);
    }
    public void lookHome(){
        System.out.printf("%s的%s正在看家……\n",color,breed);
    }
}
